sdarray module

class sd.api.sdarray.SDArray(APIContext, handle, *args, **kwargs)

Bases: sd.api.sdapiobject.SDAPIObject, collections.abc.Sequence, collections.abc.Iterable, typing.Generic

General-purpose, untyped, ordered collection of SDAPIObject

count(value) → integer -- return number of occurrences of value
getClassName() → str

Returns the most specific name of the class this APIObject is

getItem(index: int) → T

Get the item located at a specified index

Parameters

index – The index of the item to retrieve

getSize() → int

Get the size of the array

index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

pushBack(item: sd.api.sdapiobject.SDAPIObject) → None

Add the specified item to the end of the array

Parameters

item – The item to push

release() → None

Releases an APIObject

static sNew() → sd.api.sdarray.SDArray[sd.api.sdapiobject.SDAPIObject][sd.api.sdapiobject.SDAPIObject]

Create a new SDArray